<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<html>
<head>
<title>Title</title>
</head>
<h1>用户表格</h1>
<body><%
        List user=new ArrayList();
        user.add("张三");
        user.add("李四");
        user.add("王五");
        request.setAttribute("user",user);
        %>
<table border="1" width="70">
<c:forEach items="${requestScope.user}" var="str">
<tr>
<td>
        ${str}
</td>
</tr>
</c:forEach>
</table>
</body>
</html>